From: Carlos Garnacho Date: Tue, 1 Feb 2022 13:33:03 +0000 (+0100) Subject: popupMenu: Ensure to let focus manager handle key events X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~142 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=939e26eb43f7a4d062cae4dfdbc1608956e1dcda;p=gnome-shell.git popupMenu: Ensure to let focus manager handle key events Since the grab no longer lets events bubble up to the stage unstopped, we should be forwarding the key events that bubbled up to the dialog to maybe cycle focus. Fixes broken keyboard navigation in several context menus around the shell, other than the panel ones. Part-of: --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index a0c00067d..b46467362 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -154,6 +154,9 @@ var PopupBaseMenuItem = GObject.registerClass({ } vfunc_key_press_event(keyEvent) { + if (global.focus_manager.navigate_from_event(Clutter.get_current_event())) + return Clutter.EVENT_STOP; + if (!this._activatable) return super.vfunc_key_press_event(keyEvent);